<?
   define("ROOT_PATH","/var/www/html/new/d/");
ob_start();
require_once("/var/www/html/new/d/common/access.php");
if($access['yd']){
    require_once("/var/www/html/new/d/common/yd/auth_yd.php");
    require_once("/var/www/html/new/d/common/yd/nav_yd.php");
}else{
    require_once("/var/www/html/new/d/common/auth.php");
    require_once("/var/www/html/new/d/common/nav.php");
}
require_once("/var/www/html/new/d/class/Navi.php");
require_once("/var/www/html/new/d/class/LeftNavi.php");
require_once("/var/www/html/new/d/class/notice.class.php");
require_once("/var/www/html/new/d/common/h_config.php");
if(!$_SESSION['unreadmsg']){
    require_once('/var/www/html/new/d/common/autoload.php');
    $_SESSION['unreadmsg'] = \pft\notice::UnReadCount($_SESSION['sid'],$GLOBALS['le']);
}
$out_html=ob_get_contents();
ob_end_clean();
$urls=$_a->authUrl();
if($_SESSION['sdtype']==0){//供应商是否由供应伙伴
    $str="select m.id from pft_member_relationship r join pft_member m on r.son_id=m.id where son_id=".$_SESSION['sid'].
        " and r.status=0 and m.status=0 and r.ship_type=0 limit 1";
    $GLOBALS['le']->query($str);
    if(!$GLOBALS['le']->fetch_assoc()){
        $urls=array_diff($urls,array("partner.html?dtype=1"));
    }
}
$leftnavi=new LeftNavi($_auth,$_auth_group,$_SESSION['sdtype'],$urls);
$ptypeT=array("A"=>"门票","B"=>"线路","C"=>"酒店",""=>"门票");
$defaultType=$ptypeT[$_REQUEST['p_type']]?$ptypeT[$_REQUEST['p_type']]:"门票";
if($_REQUEST['act']=="download"){//下载图片
    $code_img = 'http://qr.liantu.com/api.php?text='.$_REQUEST['txt'];
    $file=file_get_contents($code_img);
    header('Content-type: image/jpg');
    $name="分享活动二维码";
    header("Content-Disposition:attachment;filename=$name.jpg");
    echo $file;
    exit;
}
echo $out_html;
$qq = array(
    'default'=>array(
        2110919586=>'客服1',
        2921140262=>'客服2',
        3117514004=>'客服3',
        2472194741=>'联盟咨询1',
        3275019874=>'联盟咨询2',
    ),
    'yyd'=>array(
        2110919586=>'客服1',
        2921140262=>'客服2',
        3117514004=>'客服3',
        2472194741=>'联盟咨询1',
        3275019874=>'联盟咨询2',
    ),
);
$showQQ = array(
    'www',
);
$unshowAccountQQ = array(
    '100010',
    '124406',
    '124073',
);

?>
<? include ROOT_PATH . "/common/new/header_tpl.html" ?>
